from django.utils import translation
from d115.siemes.models import MenuItem
from django.conf import settings

def siemes(request):
    menu_items = MenuItem.objects.filter(language=translation.get_language(), sites__id__exact=settings.SITE_ID)
    return { 'menu_items': menu_items.filter(on_top=True),
      'footer_menu_items': menu_items.filter(in_footer=True), }

